package com.an;

public class Work_ {
    public static void main(String[] args) {
//        System.out.println(Week.MONDAY.toString());
        Week[] values = Week.values();
        for(Week week:values){
            System.out.println(week.toString());
        }
//        for(;i<values.length;i++){
//            System.out.println(values[i].toString());
//        }
    }
}
enum  Week{
    MONDAY("星期一"),
    TUSEDAY("星期二"),
    WEDNESDAY("星期三"),
    THURDAY("星期四"),
    FRIDAY("星期五"),
    STAUDAY("星期六"),
    SUNDAY("星期天");

    private String name;

   private Week(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name ;
    }
}
